namespace TSL.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Data;
    using TSL.DAL;
    using TSL.Model;

    public class dict
    {
        private readonly TSL.DAL.dict dal = new TSL.DAL.dict();

        public void Adddict(TSL.Model.dict model)
        {
            this.dal.Adddict(model);
        }

        public void Deletedict(string ID)
        {
            this.dal.Deletedict(ID);
        }

        public bool Exists(string name)
        {
            return this.dal.Exists(name);
        }

        public List<TSL.Model.dict> GetListArray()
        {
            return this.dal.GetListArray("");
        }

        public List<TSL.Model.dict> GetListArray(string strWhere)
        {
            return this.dal.GetListArray(strWhere);
        }

        public DataSet GetListFromView(string strWhere)
        {
            return this.dal.GetListFromView(strWhere);
        }

        public TSL.Model.dict GetModel(string ID)
        {
            return this.dal.GetModel(ID);
        }

        public TSL.Model.dict GetModelByClassID(string ID)
        {
            return this.dal.GetModelByClassID(ID);
        }

        public TSL.Model.dict GetModels(string strWhere)
        {
            return this.dal.GetModels(strWhere);
        }

        public void Update(TSL.Model.dict model)
        {
            this.dal.Update(model);
        }
    }
}

